-
Manager API to control View Annotations.
View annotations are
UIView
instances that are drawn on top of theMapView
and bound to someGeometry
(onlyPoint
is supported for now). In case some view annotations intersect on the screen Z-index is based on addition order.View annotations are invariant to map camera transformations however such properties as size, visibility etc could be controlled by the user using update operation.
View annotations are not explicitly bound to any sources however
See moreassociatedFeatureId
could be used to bind given view annotation with someFeature
byFeature.identifier
meaning visibility of view annotation will be driven by visibility of given feature.Declaration
Swift
public final class ViewAnnotationManager
-
An interface you use to detect when the map view lays out or updates visibility of annotation views.
When visible portion of a map changes, e.g. responding to the user interaction, the map view adjusts the positions and visibility of its annotation views. Implement methods of
ViewAnnotationUpdateObserver
to detect when the map view updates position/size for supplied annotation views. As well as when annotation views get show/hidden when going in/out of visible portion of the map.To register an observer for view annotation updates, call the
See moreaddViewAnnotationUpdateObserver(_:)
method.Declaration
Swift
public protocol ViewAnnotationUpdateObserver : AnyObject
-
Stores layout and visibilty settings for a
See moreViewAnnotation
Declaration
Swift
public struct ViewAnnotationOptions : Hashable
-
Undocumented
See moreDeclaration
Swift
public enum ViewAnnotationManagerError : Error